<template>
  <div class="home-page">
    <session class="py-5 text-center container">
      <div class="row py-lg-5">
        <div class="col-lg-6 col-md-8 mx-auto">
          <img src="../assets/callout.svg" alt="callout" class="w-50"/>
          <h2 class="font-weight-light">随心写作，自由表达</h2>
          <p>
            <a href="#" class="btn btn-primary my-2">开始写文章</a>
          </p>
        </div>
      </div>
    </session>
    <h4 class="font-weight-bold text-center">发现精彩</h4>
    <column-list :list="list"></column-list>
  </div>

</template>

<script lang="ts">
import { defineComponent, computed, onMounted, ref } from 'vue'
import ColumnList, { ColumnProps } from '@/components/ColumnList.vue'
const testData:ColumnProps[] = [
  {
    id: 1,
    title: 'test1专栏',
    description: '这是test1的专栏,有一段非常有意思的简介,可以更新一下偶',
    avater: 'https://b-ssl.duitang.com/uploads/item/201603/15/20160315133252_ykEHz.thumb.700_0.jpeg'
  },
  {
    id: 2,
    title: 'test2专栏',
    description: '这是test1的专栏,有一段非常有意思的简介,可以更新一下偶',
    avater: 'https://b-ssl.duitang.com/uploads/item/201603/15/20160315133252_ykEHz.thumb.700_0.jpeg'
  },
  {
    id: 3,
    title: 'test3专栏',
    description: '这是test1的专栏,有一段非常有意思的简介,可以更新一下偶',
    avater: 'https://b-ssl.duitang.com/uploads/item/201603/15/20160315133252_ykEHz.thumb.700_0.jpeg'
  }
]
export default defineComponent({
  name: 'Home',
  components: {
    ColumnList
  },
  setup () {
    return {
      list: testData
    }
  }
})
</script>

<style scoped>

</style>
